public class Test {
    public static void main(String[] args) {
        TestBinaryTreee testBinaryTreee = new TestBinaryTreee();
        testBinaryTreee.creatTree();
        TestBinaryTreee.TreeNode root = testBinaryTreee.creatTree();
        testBinaryTreee.preOrder(root);
        System.out.println();
        testBinaryTreee.inOrder(root);
        System.out.println();
        testBinaryTreee.postOrder(root);
        System.out.println();
        System.out.println(testBinaryTreee.size(root));


        testBinaryTreee.size2(root);
        System.out.println(TestBinaryTreee.nodeSize);
        System.out.println(testBinaryTreee.getLeafNodeCount(root));
        testBinaryTreee.getLeafNodeCount2(root);
        System.out.println(testBinaryTreee.leafSize);
        System.out.println(testBinaryTreee.getKLevelNodeCount(root, 3));
        int height = testBinaryTreee.getHeight(root);
        System.out.println(height);
        TestBinaryTreee.TreeNode retN = testBinaryTreee.find(root, 'E');
        System.out.println(retN.val);

        testBinaryTreee.levelOrder(root);
        System.out.println(testBinaryTreee.isCompleteTree(root));

        testBinaryTreee.preOrderNot(root);
        System.out.println();
        testBinaryTreee.inOrderNot(root);
        System.out.println();
        testBinaryTreee.PostOrderNot(root);
        testBinaryTreee.preOrder1(root);


    }


}
